package com.example.demo7.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.demo7.entity.enums.AgeEnum;
import com.example.demo7.entity.enums.PhoneEnum;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 */
@SuppressWarnings("serial")
public class User extends Model<User>{
    private Long testId;
    private Long tenantId;
    /**
     * 名称
     */
    private String name;
    /**
     * 年龄
     */
    private AgeEnum age;

    private Integer testType;


    private Date testDate;

    private Long role;
    private PhoneEnum phone;

    public User() {
    }

    @Override
    protected Serializable pkVal() {
        return this.testId;
    }

    public User(String name, AgeEnum age, Integer testType) {
        this.name = name;
        this.age = age;
        this.testType = testType;
    }

    public Long getTestId() {
        return testId;
    }

    public void setTestId(Long testId) {
        this.testId = testId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public AgeEnum getAge() {
        return this.age;
    }

    public void setAge(AgeEnum age) {
        this.age = age;
    }

    public Integer getTestType() {
        return this.testType;
    }

    public void setTestType(Integer testType) {
        this.testType = testType;
    }

    public Long getRole() {
        return this.role;
    }

    public void setRole(Long role) {
        this.role = role;
    }

    public PhoneEnum getPhone() {
        return this.phone;
    }

    public void setPhone(PhoneEnum phone) {
        this.phone = phone;
    }

    public Date getTestDate() {
        return testDate;
    }

    public void setTestDate(Date testDate) {
        this.testDate = testDate;
    }

    @Override
    public String toString() {
        return "User{" +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", testType=" + testType +
                ", testDate=" + testDate +
                ", role=" + role +
                ", phone=" + phone +
                '}';
    }
}
